import request from '../utils/request'

// 咨询者登录接口
export const clientLogin = (data: {
  userid: number
  password: string
}) => {
  return request({
    url: '/user/login',
    method: 'post',
    params: data
  })
}

// 咨询师登录接口
export const doctorLogin = (data: {
  doctorid: number
  password: string
}) => {
  return request({
    url: '/doctor/login',
    method: 'post',
    params:data
  })
}

// 注册接口
export const register = (data: {
  name: string
  sex: number
  age: number
  password: string
}) => {
  return request({
    url: '/user/register',
    method: 'post',
    params: data
  })
}

// // 退出登录
// export const logout = () => {
//   return request({
//     url: '/user/logout',
//     method: 'post'
//   })
// } 